package com.mark.maven.ddd.common.exception;

import lombok.Getter;

@Getter
public class OrderSaveException extends RuntimeException {

    private String errorCode;

    public OrderSaveException(String message) {
        super(message);
    }

    public OrderSaveException(String errorCode, String message) {
        super(message);
        this.errorCode = errorCode;
    }

    public OrderSaveException(String errorCode, String message, Throwable throwable) {
        super(message, throwable);
        this.errorCode = errorCode;
    }
}
